package com.ruoyi.job.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.job.mapper.JobTeacherMapper;
import com.ruoyi.job.domain.JobTeacher;
import com.ruoyi.job.service.IJobTeacherService;

/**
 * 帮扶老师Service业务层处理
 * 
 * @author LYD
 * @date 2023-01-14
 */
@Service
public class JobTeacherServiceImpl implements IJobTeacherService 
{
    @Autowired
    private JobTeacherMapper jobTeacherMapper;

    /**
     * 查询帮扶老师
     * 
     * @param id 帮扶老师主键
     * @return 帮扶老师
     */
    @Override
    public JobTeacher selectJobTeacherById(Long id)
    {
        return jobTeacherMapper.selectJobTeacherById(id);
    }

    /**
     * 查询帮扶老师列表
     * 
     * @param jobTeacher 帮扶老师
     * @return 帮扶老师
     */
    @Override
    public List<JobTeacher> selectJobTeacherList(JobTeacher jobTeacher)
    {
        return jobTeacherMapper.selectJobTeacherList(jobTeacher);
    }

    /**
     * 新增帮扶老师
     * 
     * @param jobTeacher 帮扶老师
     * @return 结果
     */
    @Override
    public int insertJobTeacher(JobTeacher jobTeacher)
    {
        return jobTeacherMapper.insertJobTeacher(jobTeacher);
    }

    /**
     * 修改帮扶老师
     * 
     * @param jobTeacher 帮扶老师
     * @return 结果
     */
    @Override
    public int updateJobTeacher(JobTeacher jobTeacher)
    {
        return jobTeacherMapper.updateJobTeacher(jobTeacher);
    }

    /**
     * 批量删除帮扶老师
     * 
     * @param ids 需要删除的帮扶老师主键
     * @return 结果
     */
    @Override
    public int deleteJobTeacherByIds(Long[] ids)
    {
        return jobTeacherMapper.deleteJobTeacherByIds(ids);
    }

    /**
     * 删除帮扶老师信息
     * 
     * @param id 帮扶老师主键
     * @return 结果
     */
    @Override
    public int deleteJobTeacherById(Long id)
    {
        return jobTeacherMapper.deleteJobTeacherById(id);
    }


    /**
     * 查询帮扶老师移交列表
     * @param id
     * @return
     */
    @Override
    public List<JobTeacher> selectJobTeacherTransferList(Long id) {

        return jobTeacherMapper.selectJobTeacherTransferList(id);

    }
}
